<ion-view view-title="银行卡管理">
    <ion-content class="content has-header ionic-pseudo" >
        <!-- <div class="head-info padding size-14" ng-if="!isauth">
            <div class="padding-left padding-right size-14">为了交易安全,您需要先进行实名认证</div>
        </div> -->
        <div class="bank-card-list" ng-repeat="card in cards">
            <img ng-src="{{card.bankpng}}" alt="{{card.bankName}}">
            <p>{{card.bankName}}</p>
            <span ng-if="card.cardNumber.length==16">****&nbsp;&nbsp;****&nbsp;&nbsp;****&nbsp;&nbsp;{{card.cardNumber | limitTo:-4}}</span>
            <span ng-if="card.cardNumber.length==17">****&nbsp;&nbsp;****&nbsp;&nbsp;****&nbsp;&nbsp;*{{card.cardNumber | limitTo:-4}}</span>
            <span ng-if="card.cardNumber.length==18">****&nbsp;&nbsp;****&nbsp;&nbsp;****&nbsp;&nbsp;**{{card.cardNumber | limitTo:-4}}</span>
            <span ng-if="card.cardNumber.length==19">****&nbsp;&nbsp;****&nbsp;&nbsp;****&nbsp;&nbsp;***{{card.cardNumber | limitTo:-4}}</span>
            <i class="icon ion-minus-circled" style="font-size:32px;" ng-click="delCard(card)"></i>
        </div>
        <!-- <div class="bank-card-list">
            <img src="../../img/iconfont-zhongguoyinxing.png" alt="中国银行"></img>
            <p>中国银行</p>
            <span>尾号9999</span>
        </div>
        <div class="bank-card-list">
            <img src="../../img/iconfont-zhaoshangyinxing.png" alt="招商银行银行"></img>
            <p>工商银行</p>
            <span>尾号6666</span>
        </div> -->

<!--         <div ng-if="!isauth">
            <button class="button button-full button-positive"ui-sref="user-auth"
            >实名认证</button>
        </div>
        <div ng-if="isauth">
            <button class="button button-full button-positive" ng-click="add_bankcard()">添加银行卡</button>
        </div> -->
        <div >
            <button class="button button-full button-positive" ng-click="add_bankcard()">添加银行卡</button>
        </div>
    </ion-content>
</ion-view>